<?php

namespace app\order\controller;

use app\api\logic\TestLogic;
use app\common\controller\PCBase;
use app\BaseController;
use app\order\logic\OrderFeedbackLogic;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class OrderFeedback extends PCBase
{


    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * 反馈问题列表
     * @throws Throwable
     */
    public function qustionList()
    {
        $params     = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        return $OrderFeedbackLogic->qustionList($params);
    }

    /**
     * 回显
     * @throws Throwable
     */
    public function find($id = null)
    {
        $post = $this->request->post();
        $order_id = $post['order_id'] ?? 0;
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->find($order_id);
        return $result;
    }

    /**
    * @desc    订单反馈编辑
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function edit()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->edit($post);
        return $result;
    }

    /**
    * @desc    产品反馈列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function ProductFeedbackList()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->ProductFeedbackList($post);
        return $result;
    }

    /**
    * @desc    店铺反馈列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function StoreFeedbackList()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->StoreFeedbackList($post);
        return $result;
    }

    /**
    * @desc    售后反馈列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function AfterSalesFeedbackList()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->AfterSalesFeedbackList($post);
        return $result;
    }

    /**
    * @desc    售后反馈列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function AfterSalessalesinfo()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->AfterSalessalesinfo($post);
        return $result;
    }

    /**
    * @desc    售后反馈列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function AfterSalessalesinfob()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->AfterSalessalesinfob($post);
        return $result;
    }

    /**
    * @desc    退款列表
    * @date    2024/7/16
    * @author  zhangheng
    */
    public function RefundFeedbackList()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->RefundFeedbackList($post);
        return $result;
    }
    /**
    * @desc    订单反馈详情
    * @date    2024/7/29
    * @author  zhangheng
    */
    public function OrderFeedbackList()
    {
        $post = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        $result = $OrderFeedbackLogic->OrderFeedbackList($post);
        return $result;
    }


    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        $OrderFeedbackLogic = new OrderFeedbackLogic();
        return $OrderFeedbackLogic->export($params);
    }
}
